<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!-- 导入core标签库 -->
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>

	客户：<br>
	
	用户名：${username}<br>
	
	密码：${password}<br>
	
	主机名：<%=request.getRemoteHost() %><br>
	
	IP:<%=request.getRemoteAddr() %><br>
	
	第<%=session.getAttribute("counter") %>位<br>
	
	一共有多少位 
	<table border="1" width="500px">
		<tr>
			<td>用户名</td>
			<td>密码</td>
			<td>ip</td>
		</tr>
	<c:forEach  items="${list}"  var="entity" >
	
		<tr>
			<td>${entity.username}</td>
			<td>${entity.password}</td>
			<td>${entity.ip}</td>
		</tr>
	</c:forEach>
	</table>
	
	访问服务器：<%=request.getServerName() %><br>
	
	<h4>成功...</h4>
	
	<a href="${pageContext.request.contextPath}/hello.do?method=cancel">退出</a>

</body>
</html>